package com.ruoyi.teaching.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.teaching.domain.WebSocketUserApplication;
import com.ruoyi.teaching.domain.vo.ApplicationUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 李志鑫
 * @since 2024-08-23
 */
@Mapper
public interface WebSocketUserApplicationMapper extends BaseMapper<WebSocketUserApplication> {

    Page<ApplicationUserVO> selectApplicationAddUser(Page<ApplicationUserVO> webSocketUserApplicationPage, @Param("userId") Long userId);

    Integer deleteWebSocketUserApplication(@Param("applicationUserId") Long applicationUserId, @Param("appliedUserId") Long appliedUserId);

    List<Long> selectApplicationBYUserId(@Param("userId") Long userId);
}
